package com.example.util;

import org.apache.commons.collections4.CollectionUtils;
import org.assertj.core.util.Lists;

import java.util.ArrayList;
import java.util.List;

/**
 * @author long
 */
public class TestMain {
    public static void main(String[] args) {
        List<String> list1 = Lists.newArrayList("1","2","3");
        List<String> list2 = Lists.newArrayList("2","3","4");
        System.out.println(CollectionUtils.intersection(list1,list2));
    }
}
